<?php
require_once 'Sabai/Controller/ModelEntityUpdate.php';

class Xigg_Admin_Category_Update extends Sabai_Controller_ModelEntityUpdate
{
    function Xigg_Admin_Category_Update()
    {
        $options = array('successURL' => array('base' => '/category'));
        parent::Sabai_Controller_ModelEntityUpdate('Category', 'id', $options);
    }

    function _onUpdateEntity(&$entity, &$context)
    {
        $context->response->setVar('breadcrumb_current', _('Edit category'));
        return true;
    }
}